package com.wangbo.config.controller;

import com.wangbo.config.config.OutSettings;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class TestController {
    @Resource
    public OutSettings outSettings;

    /**
     * 获取外部配置信息
     */
    @GetMapping("/out")
    public String getOutProps() {
        return outSettings.toString(); // OutSettings(name=wangbo, age=32, career=software)
    }

}
